<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
    <title>西京文交所管理端</title>
    <link rel="stylesheet" href="../../static/iconfont/iconfont.css" >
    <link rel="stylesheet" href="../../static/frameset.css" >
</head>
<body>

    <div id="J_wrap" class="m_wrap m_box_v p_index none">
        <div class="m_top">
            <headers v-on:callback="headerHandle" :userobj.sync="userobj"></headers>
        </div>
        <div class="m_content m_flex1 m_box">
            <menunav index="control" sub="pause" :navobj.sync="userobj.group_acl"></menunav>
            <div class="container m_flex1">
                <ul class="breadcrumbs">
                    <li><span>风控管理</span>&gt;</li>
                    <li class="on">临时停牌</li>
                </ul>
                <div class="m_toolbar">
                    <a class="m_btn" href="pause_add.html">+ 添加临停</a>
                </div>
                <div class="m_search">
                    <productselect :col_id.sync="col_id" name="藏品名称" all="全部"></productselect>
                    <!-- <input type="text" class="m_input" placeholder="藏品名称" v-model="col_name"> -->
                    <adminselect :admin_id.sync="admin_id" name="操作人"></adminselect>
                    <select class="m_select" v-model="status">
                        <option value='' disabled selected hidden>状态</option>
                        <option value="">全部</option>
                        <option value="1">待审核</option>
                        <option value="2">待停牌</option>
                        <option value="3">已拒绝</option>
                        <option value="4">停牌中</option>
                        <option value="5">已复牌</option>
                    </select>
                    <button class="m_btn line" v-on:click="reSearch">查询</button>
                    <button class="m_btn line" v-on:click="reset">重置</button>
                </div>
                <table class="m_table">
                    <thead>
                        <tr>
                            <th width="8%">藏品ID</th>
                            <th>藏品名称</th>
                            <th>停牌开始时间</th>
                            <th>停牌结束时间</th>
                            <th>实际结束时间</th>
                            <th>状态</th>
                            <th>添加人</th>
                            <th>审核人</th>
                            <th>添加时间</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr v-if="list.length < 1">
                            <td colspan="10">
                                <div class="tc">
                                    <template v-if="search">没有符合条件的内容</template>
                                    <template v-else>暂无数据</template>
                                </div>
                            </td>
                        </tr>
                        <tr v-for="item in list" v-if="list.length > 0">
                            <td>{{ item.code }}</td>
                            <td><span class="m_textOver">{{ item.col_name }}</span></td>
                            <td>{{ item.start_time }}</td>
                            <td>{{ item.end_time }}</td>
                            <td>{{ item.real_end_time }}</td>
                            <td>{{ item.status_is | pauseStatus }}</td>
                            <td>{{ item.admin_name }}</td>
                            <td>{{ item.check_admin_name}}</td>
                            <td>{{ item.created_at }}</td>
                            <td>
                                <template v-if="item.status_is == 1">
                                    <a href="javascript:void(0);" v-on:click="operate(item.sus_id,1)" v-if="userobj.group_acl.control.child.pause.child['pause/pass'].isOwn">通过</a>
                                    <a href="javascript:void(0);" v-on:click="operate(item.sus_id,2)" v-if="userobj.group_acl.control.child.pause.child['pause/refuse'].isOwn">拒绝</a>
                                </template>
                                <template v-if="item.status_is == 2 && userobj.group_acl.control.child.pause.child['pause/stop'].isOwn">
                                    <a href="javascript:void(0);" v-on:click="operate(item.sus_id,3)">停止</a>
                                </template>
                                <template v-if="item.status_is == 4 && userobj.group_acl.control.child.pause.child['pause/resumed'].isOwn">
                                    <a href="javascript:void(0);" v-on:click="operate(item.sus_id,4)">复牌</a>
                                </template>
                                <span v-else>- -</span>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <pages :cur.sync="cur" :all.sync="all" v-on:btn-click="getData"></pages>
            </div>
        </div>
    </div>


    <script src="../../js/plugins/zepto/zepto.min.js"></script>
    <script src="../../js/plugins/vue/vue.min.js"></script>
    <script src="../../js/plugins/seajs/sea.js"></script>
    <script src="../../js/plugins/seajs/seajs-text.js"></script>

    <script>
        seajs.use( "../../js/page/control/pause" );
    </script>

</body>
</html>
